package com.yehui.view;

import org.springframework.stereotype.Component;
import org.springframework.web.servlet.View;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

@Component
public class MeinvView implements View {
	@Override
	public void render(Map<String, ?> model, HttpServletRequest request, HttpServletResponse response) throws Exception {
		String name = request.getParameter("name");
		Object info = model.get("info");
		response.getWriter().write(name+":"+info);
	}
}
